import time

offset = int(input())
seconds = int(time.time())
curSeconds = seconds % 60
minutes = seconds // 60
curMinutes = minutes % 60
hours = minutes // 60
curHours = (hours + offset) % 24
print("%d:%d:%d" % (curHours, curMinutes, curSeconds))
